#include "PointLight.h"
PointLight::PointLight(std::vector<float>position, std::string name, std::vector<float>ambient, std::vector<float>diffuse, std::vector<float>specular, float range, std::vector<float>attenuation) :
	Light("PointLight", position, name, ambient, diffuse, specular),
	m_range(range),
	m_attenuation(attenuation[0], attenuation[1], attenuation[2])
{
}
PointLight::~PointLight()
{
}
Light::PointLightStructure PointLight::GetLightStructure()
{
	PointLightStructure result;
	result.ambient = GetAmbient();
	result.diffuse = GetDiffuse();
	result.specular = GetSpecular();
	result.position = m_transform->GetPosition();
	result.range = m_range;
	result.attenuation = m_attenuation;
	return result;
}